import { CHANGECONTENTPAGEACTIVATE, GETCONTENTPAGESAGA, USERGETTASKSAGA, USERUPDATEBASEINFOSAGA } from "../constants";

// 获取主页面的信息
export const ChangeContentPageActivate = (obj) => ({
    type: CHANGECONTENTPAGEACTIVATE,
    data: obj
})

// 向后端获取主页面需要的信息
export const GetContentPageSaga = (obj) => ({
    type: GETCONTENTPAGESAGA, 
    data: obj
})

// 领取任务
export const UserGetTaskSaga = (obj) => ({
    type: USERGETTASKSAGA,
    data: obj
})

// 更新用户的基本信息
export const UserUpdateBaseInfoSaga = (obj) => ({
    type: USERUPDATEBASEINFOSAGA,
    data: obj
})